#Declare project - "amz_server"
project("amz_server")

#Declare version.
cmake_minimum_required(VERSION 0.1)

#Compile options:
# Take almost all warnining;
# Take warnings as errors;
# Optimization level 2;
#add_definitions("-g -Wall -Werror -O2")
#add_definitions("-g -Wall -Werror -D_AMZ_DEBUG -O2")
#add_definitions("-g -Wall -Werror -D_AMZ_DEBUG")
add_definitions("-g -Wall -Wno-unused-variable -Werror -D_AMZ_DEBUG")

#Declare where to be installed.
set(CMAKE_INSTALL_PREFIX "/home/root/maz_server_")

#Declare project binary/library directory.
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

message(STATUS "This is SOURCE dir "${PROJECT_SOURCE_DIR})

#Set include paths.
include_directories(
  "${PROJECT_SOURCE_DIR}"
  "${PROJECT_BINARY_DIR}"
  "${PROJECT_SOURCE_DIR}/src"
  "${PROJECT_SOURCE_DIR}/src/base"
  "${PROJECT_SOURCE_DIR}/src/encrypt"
  "${PROJECT_SOURCE_DIR}/src/zip"
  "${PROJECT_SOURCE_DIR}/src/network"
  "${PROJECT_SOURCE_DIR}/src/thread"
  "${PROJECT_SOURCE_DIR}/src/test"
  )

#Add subdirectory.
add_subdirectory(src)
#add_subdirectory(src/base)
#add_subdirectory(src/network)
#add_subdirectory(src/thread)
add_subdirectory(src/test)

